Automattic\WooCommerce\Admin\Features\WcPayPromotion\Init S

Total Complexity 32
Dependencies 6
Dependents 1
Total lines 184
Lines of code 114
Logical lines of code 58
Comment lines 43
Methods 9
Properties 0

Methods 9

Method Rating Maintainability Complexity Lines of code
should_register_pre_install_wc_pay_promoted_gateway()
A
51 8 24
__construct()
S
49 6 27
set_gateway_top_of_list()
S
63 6 9
get_promotions()
S
58 3 16
get_wc_pay_promotion_spec()
S
62 2 12
possibly_filter_recommended_payment_gateways()
S
64 2 11
possibly_register_pre_install_wc_pay_promotion_gateway()
S
71 2 6
get_specs()
S
70 2 6
delete_specs_transient()
S
81 1 3